package com.example.shiro_realy.controller;

import com.example.shiro_realy.domian.JsonData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController//可以返回Json数据，controller只能返回页面
@RequestMapping("admin")
public class AdminController {
    @RequestMapping("/video/order")
    public JsonData playRecord(){
        HashMap<String, String> map = new HashMap<>();
        map.put("springboot入门","300元");
        map.put("cloud微服务入门","877元");
        map.put("分布式缓存","990元");
        return JsonData.buildSuccess(map);
    }
}
